    // 判断classname
    const ifClassName = (target, str) => {
        if (target.className.search(str) !== -1 || target.parentNode.className.search(str) !== -1) {
            return true
        } else {
            return false
        }
    }

    // 获取ClassName
    const getClassName = (target, str, re) => {
        if (re) {
            return target.id.search(str) === -1 ? target.parentNode.id : target.id
        } else {
            return target.id.search(str) !== -1 ? target.parentNode.id : target.id
        }
    }

    // 判断是否原位移动
    const ifLocal = (target, so, str, re) => {
        let p1 = getClassName(target, str, re)
        let p3 = document.getElementById(so).parentNode.className
        console.log(p1, 1, p3, 2, so)
        return p1 === p3 ? true : false
    }

    let so = e.dataTransfer.getData("Text")


const dr = () => {
    console.log('dr-------------------')
// 判断是否拖到系统标题
if (ifClassName(e.target, 'table_drop_box')) {
    console.log('拖到系统标题')
    if (!ifLocal(e.target, so, 'table_drop_box')) {
        console.log('不是原位移动')

        let parentNode = document.getElementById(so).parentNode
        let key = getClassName(e.target, 'table_drop_box')
        console.log(key)

        if (parentNode.className === e.target.className) {
            // 系统表头移动项目
            let tmp = Object.assign({}, state.tag_bind)
            tmp[key] = [...tmp[key], so]

            dispatch({
                type: 'global/save', payload: {
                    tag_bind: {
                        ...state.tag_bind,
                        [key]: tmp[key],
                        [parentNode.id]: tmp[parentNode.id].filter(i => i != so)
                    }
                }
            })

        } else {
            // 从文件拖过来

            let tmp = [...state.tag_bind[key]]
            tmp.push(so)

            let tmp2 = state.file_data_cols.filter(i => i !== so)

            dispatch({
                type: 'global/save', payload: {
                    tag_bind: { ...state.tag_bind, [key]: tmp }
                }
            })
            dispatch({ type: 'global/save', payload: { file_data_cols: tmp2 } })
        }

    }
}

// 判断是否拖到文件标题
if (ifClassName(e.target, 'file_tags')) {
    console.log('拖到文件标题')
    if (!ifLocal(e.target, so, 'file_tags', true)) {
        console.log('不是原位移动')

        let key = document.getElementById(so).parentNode.id
        let tmp = state.tag_bind[key].filter(i => i !== so)

        let tmp2 = [...state.file_data_cols]
        tmp2.push(so)

        dispatch({
            type: 'global/save', payload: {
                tag_bind: { ...state.tag_bind, [key]: tmp }
            }
        })
        dispatch({ type: 'global/save', payload: { file_data_cols: tmp2 } })

    }
}
}





{
bdhwl: "",
bz1: "",
bz2: "为河北省石家庄市漫入重复人员",
cs: "",
dh: ["15678633351", "15278512199", "15077508327"],
gj: "",
gksj: "",
hjdz: "广西北流市新丰镇永安村十组20号",
jkzk: "",
key: 0,
lfylsj: "",
lzhd: "",
op: "工作表[2020石家庄邢台10人] 来自文件：石家庄、邢台市就读大学生信息.xlsx",
sfddyl: "",
sfgk: "",
sfgyxg: "",
sfxf: "",
sfz: "450981200205033541",
sfzghs: "",
sjdz: "广西玉林市大北路672号玉林实验中学1722班",
smqk: "经联系15678633351，自称蒙丽，身份证号码：450981200205033541，户籍地址：广西北流市新丰镇永安村十组20号。河北美术学院学生，12月24日从石家庄新乐市（低风险地区)搭乘飞机（航班：9C8643到南宁，后搭乘客车到北流，再搭乘私家车回到新丰镇的家中。未做核酸检测、不是无症状感染者。",
xb: "",
xm: "蒙丽",
xq: "",
xzrq: "2021-01-30 20:53:31",
xzsffk: "",
zt: "",
zxychsjcrq: "",
zy: "",
_id: "601556cb6779902ee40281d3",
}